package com.cmict.data.system.dal.dataobject.encode;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cmict.data.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

@TableName("system_encoding")
@Data
@EqualsAndHashCode(callSuper = true)
public class EncodeDO extends BaseDO {

    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 编码编号
     */
    @NotBlank(message = "编码编号不能为空")
    private String encodeNum;
    /**
     * 编码名称
     */
    @NotBlank(message = "编码名称不能为空")
    private String encodeName;
    /**
     * 编码说明
     */
    private String encodeDesc;

    @TableField(exist = false)
    private List<EncodeDetailsDO> applyFieldList;

    @TableField(exist = false)
    private String createName;
}
